home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
man
/
cat.1
/
rawtopgm.1
< prev
next >
Wrap
Text File
|
1995-07-25
|
2KB
|
67 lines
rrrraaaawwwwttttooooppppggggmmmm((((1111)))) XXXXEEEENNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV ((((11115555 DDDDeeeecccceeeemmmmbbbbeeeerrrr 88889999)))) rrrraaaawwwwttttooooppppggggmmmm((((1111))))
NNNNAAAAMMMMEEEE
rawtopgm - convert raw grayscale bytes into a portable
graymap
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
rrrraaaawwwwttttooooppppggggmmmm [----hhhheeeeaaaaddddeeeerrrrsssskkkkiiiipppp _N] [----rrrroooowwwwsssskkkkiiiipppp _N] _w_i_d_t_h _h_e_i_g_h_t
[_i_m_a_g_e_d_a_t_a]
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
Reads raw grayscale bytes as input. Produces a portable
graymap as output. The input file is just grayscale bytes.
You have to specify the width and height on the command
line, since the program obviously can't get them from the
file. The maxval is assumed to be 255. If the resulting
image is upside down, run it through ppppnnnnmmmmfffflllliiiipppp ----ttttbbbb ....
OOOOPPPPTTTTIIIIOOOONNNNSSSS
----hhhheeeeaaaaddddeeeerrrrsssskkkkiiiipppp
If the file has a header, you can use this flag to skip
over it.
----rrrroooowwwwsssskkkkiiiipppp
If there is padding at the ends of the rows, you can
skip it with this flag. Note that rowskip can be a
real number. Amazingly, I once had an image with 0.376
bytes of padding per row. This turned out to be due to
a file-transfer problem, but I was still able to read
the image.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
pgm(5), rawtoppm(1), pnmflip(1)
AAAAUUUUTTTTHHHHOOOORRRR
Copyright (C) 1989 by Jef Poskanzer.
Page 1 (printed 9/7/93)